#ifndef   _PROTOCOL_H__
#define _PROTOCOL_H__

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<unistd.h>
#include<fcntl.h>
#include<pthread.h>
#include<netinet/in.h>
#include<arpa/inet.h>
#include<sys/socket.h>

#define NAME 22             //名字大小
#define MSG 1024            //发送信息大小
#define PIP "45.40.241.191"   //公网IP
#define IP "172.27.0.15"      //内网IP
#define PORT 4040           //端口号

typedef struct SocketListNode//定义双向链表保存每一个客�端的socket
{
      struct SocketListNode* _prev;
      struct SocketListNode* _next;
      int _socket;
}SLNode;

typedef struct User
{
      char _name[NAME];
      char _msg[MSG];

}user;

#endif//_PROTOCOL_H__
